a11,a12=7,6
b11,b12=3,5

def kai(a):
    b=1
    n=0
    c=0
    x=1000
    while n<x:
        n+=1
        if c*c<a:
            c+=b
        if c*c==a:
            n+=1000
        if c*c>a:
            c-=b
            b=b/10
    return c
a=[a11,a12]
b=[b11,b12]
d=[]
for c in range(0,1000,1):
    c=c/100
    a2=c-a11
    if a2<0:
        a2=-a2
    b2=c-b11
    if b2<0:
        b2=-b2
    d1=a12*a12+a2*a2
    d2=b12*b12+b2*b2
    d1=kai(d1)+kai(d2)
    d.append(d1)
print(d)
import pygame , sys
pygame.init()
screen=pygame.display.set_mode([1000,800])
screen.fill([255,255,255])
for i in range(1000):
    pygame.draw.rect(screen,[255,0,0],[i,1000-d[i]*30,1,1],0)
pygame.display.flip()
running=True
while running:
    for event in pygame.event.get():
        if event.type == pygame.QUIT:
            running=False
pygame.quit()